﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Xml.Linq;
using websoniBO;

namespace websoni
{
    public partial class WebForm1 : System.Web.UI.Page
    {
        Liner l = new Liner();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                string msg;
                DataTable dt=l.GetRecords(-99,"",false," and ");
                string s=  dt.Rows[0]["liners"].ToString();
                if (DateTime.Now.Hour < 12)
                    msg = "Good Morning...!";
                else if (DateTime.Now.Hour >= 12 && DateTime.Now.Hour <15)
                    msg = "Good Afternoon...!";
                else if (DateTime.Now.Hour >= 15 && DateTime.Now.Hour < 18)
                    msg = "Good Evening...!";
                else
                    msg = "Good Night...!";
                Homemsg.Text = msg + "";













                //Homemsg.Text = "muuuuhhh...! " + msg+"</br></br>"
                //    + "Aap dekh rahe hain Rajasthan ki number 1 website..."+ "\"\"" + 
                //    "</br></br>" + 
                //    "mere yaani \"Name\" ke saath" + 
                //    "</br></br>"
                //    + "exact time System clock me " + DateTime.Now.Hour.ToString() + " bajke " + DateTime.Now.Minute.ToString() + " minute "
                //    + "</br></br>"+
                //    "Isse pahle ke aap next page par jaaye, usse pahle aaj ki jiyo dil se soch bas yahi.. ya yu kahu ki dil ki ek baat bas yahi ke..." +
                //    "</br></br>" + "\""+s+"\"";
                  

            }
        }
    }
}
